package Pliot;

public class Battleplane extends Plane {
    private String name;
    private int weight;
    private int height;
    private int dantou;
    public Battleplane(String name,int weight,int height,int dantou){
        super(name,weight,height);
        this.name=name;
        this.weight=weight;
        this.height=height;
        this.dantou=dantou;
    }
    public void takeoff(Pliot s){
        System.out.println(s.getName()+"驾驶"+name+"起飞。");
    }
    public void land(Pliot s){
        System.out.println(s.getName()+"驾驶"+name+"降落。");
    }
    public void speedUp(Pliot s){
        System.out.println(s.getName()+"驾驶"+name+"加速。");
    }
    public void fight(Pliot s){
        System.out.println(s.getName()+"驾驶"+name+"发射导弹。");
    }
    public void search(Pliot s){
        System.out.println(s.getName()+"驾驶"+name+"低空盘旋。");
    }
//    public void setName(String name) {
//        this.name = name;
//    }
//
//    public void setHeight(int height) {
//        this.height = height;
//    }
//
//    public int getHeight() {
//        return height;
//    }
//
//    public String getName() {
//        return name;
//    }
//
//    public void setWeight(int weight) {
//        this.weight = weight;
//    }
//
//    public int getWeight() {
//        return weight;
//    }
//
//    public int getDantou() {
//        return dantou;
//    }
//
//    public void setDantou(int dantou) {
//        this.dantou = dantou;
//    }
}
